package com.baiyun.bs.repository;

import com.baiyun.bs.domain.Course;
import com.baiyun.bs.viewmodel.admin.course.CoursePageRequestVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface CourseMapper {
    List<Course> getAllCourses(Course course);
    Course getCourseById(Long courseId);
    void insertCourse(Course course);
    void updateCourse(Course course);
    void deleteCourse(@Param("courseId") Long courseId);

    Object coursePage(CoursePageRequestVM requestVM);
}
